﻿ 
namespace Core.Items.Modules
{
    /*

		MetaGroup                      = Weapons
		Group                          = Firearms
		Size                           = Small
		Module                         = senner carbine light autocannon prototype
		CpuUsage                       = 6.00 TF
		ReactorUsage                   = 15.00 RP
		Type                           = Active
		Slot                           = Turret
		TechnologicalLevel             = T3P
		Mass                           = 300.00 kg
		PackedVolume                   = 0.30 U
		Volume                         = 0.60 U
		AccumulatorConsumption         = 2.00 AP
		CycleTime                      = 3.25 sec
		OptimalRange                   = 80 m
		Falloff                        = 140 m
		AmmoChargeType                 = Small bullets
		AmmoChargeCapacity             = 240 pcs
		Damage                         = 135 %
		HitDispersion                  = 5.00 •
    */

    using System;
    using Base;
    using Contracts.Enums;
    using Contracts.Interfaces;
    using Extensions;
    using Features;
    
    /// <summary>
    /// Senner Carbine light autocannon prototype module class
    /// </summary>
    /// <remarks>File generated on 31/10/2011 16:00:56</remarks>
    public sealed class SennerCarbineLightAutocannonPrototype : ModuleBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="SennerCarbineLightAutocannonPrototype"/> class.
        /// </summary>
        public SennerCarbineLightAutocannonPrototype()
            : base(
            "Senner Carbine light autocannon prototype",
            "",
            ModuleMetaGroupsEnum.Weapons,
            ModuleGroupsEnum.Firearms,
            TechnologyLevelsEnum.Level3|TechnologyLevelsEnum.Prototype,
            SizesEnum.Small,
            new LazyFeature[] { 
				new LazyFeature(typeof(WeaponCpuUsage<double>),6.00),
				new LazyFeature(typeof(WeaponReactorUsage<double>),15.00),
				new LazyFeature(typeof(ModuleMass<double>),300.00),
				new LazyFeature(typeof(WeaponAccumulatorUsage<double>),2.00),
				new LazyFeature(typeof(AmmunitionType<AmmunitionTypesEnum>),AmmunitionTypesEnum.SmallBullets),
				new LazyFeature(typeof(AmmoCapacity<double>),240),
				new LazyFeature(typeof(SmallFirearmCycleTime<double>),3.25),
				new LazyFeature(typeof(SmallFirearmOptimal<double>),80),
				new LazyFeature(typeof(SmallFirearmFalloff<double>),140),
				new LazyFeature(typeof(SmallFirearmDamage<double>),135),
				new LazyFeature(typeof(SmallFirearmHitDispersion<double>),5.00), },
            null,
            new IModifier[] { 
				new Modifier( FeatureTypesEnum.Robot, FeaturesEnum.RobotMass, 300.00 ){ IsVisible = false }, } )
        {
        }

        /// <summary>
        /// Obtains the activation type
        /// </summary>
        public override ModuleActivationTypesEnum ActivationType
        {
            get { return ModuleActivationTypesEnum.Active; }
        }
        /// <summary>
        /// Obtains the module slot group 
        /// </summary>
        public override SlotGroupsEnum SlotGroup
        {
            get { return SlotGroupsEnum.Chassis; }
        }
        /// <summary>
        /// Obtains the module slot type 
        /// </summary>
        public override SlotTypesEnum SlotType
        {
            get { return SlotTypesEnum.Turret; }
        }
    }
}